package org.cfx.org.service;

import org.cfx.org.domain.Department;
import org.cfx.org.query.BaseQuery;
import org.cfx.org.query.DepartmentQuery;
import org.cfx.org.utils.PageInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface IDepartmentService {
    void add(Department department);
    void update(Department department);
    void delete(Long id);

    Department queryById(Long id);
    List<Department> queryAll();
    PageInfo<Department> queryAllPage(DepartmentQuery departmentQuery);
    List<Department> queryTree();

}
